package com.workflowengine.event.workflowevent.events;

import com.workflowengine.event.workflowevent.WorkFlowEventContent;
import org.springframework.context.ApplicationEvent;

/**
 * @Package: com.workflowengine.event.workflowevent.events
 * @ClassName: AbstractEvent
 * @Author: h2cloud
 * @CreateTime: 2024/7/15 11:00 下午
 * @Description:
 */
public class AbstractEvent extends ApplicationEvent {

	private WorkFlowEventContent content;

	/**
	 * Create a new {@code ApplicationEvent}.
	 *
	 * @param source the object on which the event initially occurred or with
	 *               which the event is associated (never {@code null})
	 */
	public AbstractEvent(WorkFlowEventContent source) {
		super(source);
		this.content = source;
	}

	public WorkFlowEventContent getContent() {
		return content;
	}

	public void setContent(WorkFlowEventContent content) {
		this.content = content;
	}
}
